package com.examination.system.instructor.student.ext;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author 寇淇芮
 * @Date 2019/10/23 14:48
 */
@Data
@Entity
@GenericGenerator(name = "StudentFamilyBackground-uuid", strategy = "assigned")
@Table(name= "student_family_background")
public class StudentFamilyBackground  implements Serializable {
    @Id
    @GeneratedValue(generator = "StudentFamilyBackground-uuid")
    @Column(name = "student_id",length = 50)
   private String   studentId;
    @Column(name = "name")
   private String  name;
    @Column(name = "political_landscape")
   private String  politicalLandscape;
    @Column(name="age")
   private Integer age = null;
    @Column(name="personal_relationship")
   private String  personalRelationship;
    @Column(name = "work_unit")
   private String workUnit;

}
